﻿using System;
using System.Collections.Generic;

namespace MiserBlogData.Entities
{
    public class Article : A_Data
    {
        public virtual string Title { set; get; }
        public virtual DateTime UDate { set; get; }
        public virtual int Visits { set; get; }
        public virtual string TagStr { set; get; }
        public virtual IList<Comment> CommentList { set; get; }
        public virtual IList<Tag> Tags { set; get; }
        public virtual Categories Categories { set; get; }

        

        public override System.Collections.Generic.IList<T> GetList<T>()
        {
            MiserDB.DataHelp.QueryHelper d = new MiserDB.DataHelp.QueryHelper();
            return d.GetList<T>(this.Id);
        }

        
    }
}
